more shim cleanup

This commit is contained in:
Keivan Beigi
2015-02-07 08:37:12 -08:00
parent 672e1bd9ed
commit e0dd72328c
10 changed files with 61 additions and 71 deletions
+5 -4
View File
@@ -1,7 +1,8 @@
var $ = require('jquery');
module.exports = (function(){
module.exports = function(){
'use strict';
var $ = this;
$.fn.spinForPromise = function(promise){
var self = this;
if(!promise || promise.state() !== 'pending') {
@@ -43,4 +44,4 @@ module.exports = (function(){
}
return this;
};
}).call(this);
};