File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ var Prom = function() {
16
16
result . then (
17
17
nextPromise . resolve . bind ( nextPromise ) ,
18
18
nextPromise . reject . bind ( nextPromise ) ) ;
19
- } else {
19
+ } else {
20
20
nextPromise . resolve ( result ) ;
21
21
}
22
22
} catch ( e ) {
@@ -53,15 +53,15 @@ var Prom = function() {
53
53
return nextPromise ;
54
54
}
55
55
self . resolve = function ( ) {
56
- if ( state !== undefined ) { return ; }
56
+ if ( state !== undefined ) { return ; }
57
57
state = true ;
58
58
args = [ ] . slice . call ( arguments ) ;
59
59
onSucc . forEach ( function ( fn ) {
60
60
fn . apply ( { } , args ) ;
61
61
} )
62
62
}
63
63
self . reject = function ( ) {
64
- if ( state !== undefined ) { return ; }
64
+ if ( state !== undefined ) { return ; }
65
65
state = false ;
66
66
args = [ ] . slice . call ( arguments ) ;
67
67
onErr . forEach ( function ( fn ) {
@@ -81,7 +81,7 @@ Prom.all = function(promises) {
81
81
results [ i ] = r ;
82
82
if ( ! cont ) { allPromise . resolve ( results ) ; }
83
83
} , function ( e ) {
84
- allPromise . reject ( e ) ;
84
+ allPromise . reject ( e ) ;
85
85
} ) ;
86
86
} , i ) ;
87
87
return allPromise ;
Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ var Producto = ProJS.Model.extend({
30
30
// Vista
31
31
32
32
var VistaProducto = ProJS . View . extend ( {
33
- init : function ( ) {
33
+ init : function ( options ) {
34
34
this . _super ( options ) ;
35
- this . template = $ ( '#producto- template' ) ;
35
+ this . template = $ ( '#template-producto' ) . html ( ) ;
36
36
} ,
37
37
render : function ( ) {
38
38
var attrs = this . model . toJSON ( ) ;
You can’t perform that action at this time.
0 commit comments