Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.

Commit 8ff950a

Browse files
author
Pinhook
committed
naming store right, adding info to fixtures and class
1 parent 2baf27d commit 8ff950a

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

class/class.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,10 @@ steal.plugin("jquery").then(function(){
403403
namespace = current;
404404
shortName = parts[parts.length - 1];
405405
fullName = className;
406+
407+
//@steal-remove-start
408+
steal.dev.isHappyName(className)
409+
//@steal-remove-end
406410
}
407411

408412
var makeClass;

dom/fixtures/fixtures.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,18 @@ $.
299299
if(/^\/\//.test(url)){
300300
url = steal.root.join(settings.fixture.substr(2))
301301
}
302+
//@steal-remove-start
303+
steal.dev.log("looking for fixture in "+url)
304+
//@steal-remove-end
305+
302306
settings.url = url
303307
settings.data = null;
304308
settings.type = "GET"
309+
if(!settings.error){
310+
settings.error = function(xhr, error, message){
311+
throw "fixtures.js Error "+error+" "+message;
312+
}
313+
}
305314
return ajax(settings);
306315

307316
}

model/model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ You can validate your model's attributes with another plugin. See [validation].
136136
jQuery.Class.extend("jQuery.Model",
137137
/* @Static*/
138138
{
139-
storeType: jQuery.Store,
139+
storeType: null,
140140
setup: function(){
141141
this.validations = [];
142142
this.attributes= {}; //list of all attributes ever given to this model

model/store/store.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// provides very simple storage
22
// var store = new jQuery.Store();
33
// when its being extended, it should make a new simplestore
4-
steal.then(function(){
4+
steal.plugins('jquery/model/store').then(function(){
55
/**
66
* Provides simple storage for elements. Replace this store with Gears!
77
*/
8-
jQuery.Class.extend("jQuery.Store",
8+
jQuery.Class.extend("jQuery.Model.Store",
99
/* @prototype */
1010
{
1111
/**

0 commit comments

Comments
 (0)