Skip to content

Commit

Permalink
remove useless lazyload - release 0.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
blackout314 committed Jan 21, 2015
1 parent d50cc94 commit 984782f
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 134 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,14 @@ pi.R.bundle( [
pi.R.start('defaultAction');
```

## AddOn

### Lazyload

[vanilla-lazyload](https://github.com/verlok/lazyload)
```javascript
var l = new Lazyload(); // see doc in libs page
```
## Questions

###Why
Expand Down
4 changes: 2 additions & 2 deletions build/pi.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ module.exports = function(config) {
frameworks: ['qunit','sinon'],
reporters: ['progress', 'coverage'],
preprocessors: {
'src/pi.js': ['coverage'],
'src/pi.lazyload.js': ['coverage']
'src/pi.js': ['coverage']
},
coverageReporter: {
type : 'html',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pi",
"version": "0.2.5",
"version": "0.2.6",
"devDependencies": {
"grunt": "~0.4.2",
"grunt-contrib-jshint": "~0.6.3",
Expand Down
14 changes: 8 additions & 6 deletions playground/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@
<head>
<title>playground</title>
<script src="../src/pi.js" type="application/javascript"></script>
<script src="../models/class.items.js" type="application/javascript"></script>
</head>
<body>
<div id="one">
ONE
<img src="" data-echo="http://a.dryicons.com/images/icon_sets/colorful_stickers_part_4_icons_set/png/256x256/save.png" />
</div>
<div style="height:500px;">space</div>
<div id="two">TWO</div>
<div id="try">
<div class="sub" data-echo="http://a.dryicons.com/images/icon_sets/colorful_stickers_part_4_icons_set/png/256x256/save.png">1</div>
<div class="sub">1</div>
<div class="sub">2</div>
<div class="sub">3</div>
<div class="sub">
3
<img data-original="http://a.dryicons.com/images/icon_sets/colorful_stickers_part_4_icons_set/png/256x256/save.png" />
</div>
</div>

<script>
Expand All @@ -39,11 +41,11 @@
pi.R.bundle( [
{
route:'news',
callback:function(){ alert('news'); }
callback:function(){ console.log('PAGE news'); }
},
{
route:'users',
callback:function(){ alert('users'); }
callback:function(){ console.log('PAGE users'); }
}
] );
pi.R.start('news');
Expand Down
113 changes: 0 additions & 113 deletions src/pi.lazyload.js

This file was deleted.

10 changes: 0 additions & 10 deletions tests/lazyload.js

This file was deleted.

0 comments on commit 984782f

Please sign in to comment.