Rewrote to use commonsjs amd pattern.
Showing
1 changed file
with
5 additions
and
9 deletions
1 | define([ | 1 | define(function(require) { |
2 | 'module', | ||
3 | 'rivets', | ||
4 | 'jquery' | ||
5 | ], function( | ||
6 | module, | ||
7 | rivets, | ||
8 | $ | ||
9 | ) { | ||
10 | 'use strict'; | 2 | 'use strict'; |
3 | var module = require('module'); | ||
4 | var rivets = require('rivets'); | ||
5 | var $ = require('jquery'); | ||
6 | |||
11 | var rivetsBinderCall = function(binding, binderName, methodName, args) { | 7 | var rivetsBinderCall = function(binding, binderName, methodName, args) { |
12 | var binder = rivets.binders[binderName]; | 8 | var binder = rivets.binders[binderName]; |
13 | binder[methodName].apply(binding, args); | 9 | binder[methodName].apply(binding, args); | ... | ... |
-
Please register or sign in to post a comment